<%@ page import="java.sql.DriverManager" %>
<%@ page import="java.sql.Connection" %>
<%@ page import="java.sql.Statement" %>
<%@ page import="java.sql.ResultSet" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<html>
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="css/denglu.css" />
    <link rel="stylesheet" href="css/zhuce.css"  />
    <title>注册</title>

    <script language="javascript">
        function isValid(form)
        {
            if (form.username.value=="")
            {
                alert("用户名不能为空");
                return false;
            }
            if (form.password.value!=form.pwd2.value)
            {
                alert("两次输入的密码不同！");
                return false;
            }
            else  if (form.password.value=="")
            {
                alert("用户密码不能为空！");
                return false;
            }
            else return true;
        }
    </script>

</head>
<body style="margin: 0px; "id="zhuce-background">

<div id="zhuce-img">
    <a href="#"><img src="img/zhuce-首页.png" id="zhuce-img1"></a>
    <div id="zhuce-div1">
        <img src="img/zhuce-logo.png" id="zhuce-img2"/>
        <hr id="zhuce-hr"/>
        注册
        <hr id="zhuce-hr2"/>
        <form method="post" action="ZhuceHandler.jsp" onSubmit="return isValid(this);">
        <input type="text" id="zhuce-input" name="username" value="请输入用户名"/>
        <input type="text" id="zhuce-input" name="password" value="请输入密码"/>
        <input type="text" id="zhuce-input" name="password" value="请再次输入密码"/>

        <%--<input type="text" id="zhuce-input2" value="请输入验证码"/>--%>

        <%--<a><img src="img/zhuce-验证码.png" id="zhuce-yanzhengma"></a>--%>

        <a><img src="img/zhuce-zhuce.png" id="zhuce-zhuce"/></a>
            <input type="submit" value="注册"/>
        </form>
        <p href="Zhushouye.jsp" id="zhuce-fanhui" value="返回"></p>
    </div>
</div>
<div id="zhuce-background2"></div>

</body>
</html>
